package com.sllp.C71S3TsllpShop.biz.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.sllp.C71S3TsllpShop.bean.Image;
import com.sllp.C71S3TsllpShop.bean.ImageExample;
import com.sllp.C71S3TsllpShop.bean.ImageExample.Criteria;
import com.sllp.C71S3TsllpShop.biz.ImageBiz;
import com.sllp.C71S3TsllpShop.dao.ImageMapper;

@Service
public class ImageBizImpl implements ImageBiz {


	@Resource
	private ImageMapper im;
	
	public List<Image> findImageByUser(int uid){
		ImageExample ie=new ImageExample();
		Criteria c=ie.createCriteria();
		c.andUserEqualTo(uid);
		List<Image> list=im.selectByExample(ie);
		return list;
	}
}
